package pkmn.type;

public class Fire extends Type{

    public Fire(){
        this.setTypeEnum(TypeEnum.fire);
    }

    @Override
    public double effective(Type type){
        switch (type.getTypeEnum()){
            case bug:
            case grass:
            case ice:
            case steel:
                return 2.0;
            case dragon:
            case fire:
            case rock:
            case water:
                return 0.5;
            default:
                return 1.0;
             
        }
    }
}
